/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * under the License.
 */
package shopping.model;

import shopping.commons.ModelObject;

import java.sql.Timestamp;
import java.util.List;

/**
 * Copyright 2010 mazhao.
 * <p/>
 * User: mazhao
 * Date: 2010/11/27
 * Time: 20:34:50
 */
public class GroupData extends ModelObject{
    private int id;
    private int productId;
    private int catalogId;
    private int version;
    private int min;
    private int max;
    private double price;
    private Timestamp timeBegin;
    private Timestamp timeEnd;
    private int status;
    private String creator;
    private Timestamp createTime;
    private Timestamp updateTime;
    private boolean useStep;

    private List<? extends GroupPriceStepData> priceSteps ;

    public Timestamp getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(Timestamp timeBegin) {
        this.timeBegin = timeBegin;
    }

    public Timestamp getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Timestamp timeEnd) {
        this.timeEnd = timeEnd;
    }

    public int getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(int catalogId) {
        this.catalogId = catalogId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public List<? extends GroupPriceStepData> getPriceSteps() {
        return priceSteps;
    }

    public void setPriceSteps(List<? extends GroupPriceStepData> priceSteps) {
        this.priceSteps = priceSteps;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isUseStep() {
        return useStep;
    }

    public void setUseStep(boolean useStep) {
        this.useStep = useStep;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }
}
